package com.epic.eventmgr.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("zoo")
public class Zoo {
    @Autowired //使用自动装配,默认按照byType对应的类型查找bean
    private Student student;
    public Student getStudent(){
        return student;
    }
}
